// Bootstrap settings
@import '_variables';

$page-dropdown-height: 36px;

.ethdocs-page-container {
  position: absolute;
  left: 0;
  right: 0;
  top: $navbar-height + $navbar-margin-bottom;
  bottom: $navbar-margin-bottom;
  //background: #f0ad4e;
}

.ethdocs-page {
  position: relative;
  height: 100%;
}

.ethdocs-page-dropdown {
  height: $page-dropdown-height;
}

.ethdocs-page-sidebar {
  height: 100%;

  .sidebar-inner {
    height: 100%;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding-right: $padding-large-horizontal;

    .sidebar-container {
      position: relative;

      & > ul {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        float: left;
        width: 100%;
        padding: 0 0 5px 0;
        margin: 0;
        list-style: none;
        font-size: 14px;
        text-align: left;
        background-color: #fff;
        background-clip: padding-box;
        overflow: hidden;

        & > li {

          & > h3 {
            //margin: 10px 15px 5px 15px;
            //padding: 0 0 5px 0;
            //display: block;
            border-bottom: 1px solid #ccc;
            //background: #eee;
            margin: 0 0 5px 0;
            height: 33px;
            line-height: 33px;
            padding: 0 15px;
            font-size: 16px;
            font-weight: 400;
          }

          &:not(:first-child) {
            & > h3 {
              margin-top: 5px;
            }
          }
        }
      }

      & > .ui-select-choices {
        width: 100%;
        height: auto;
        max-height: 200px;
        overflow-x: hidden;
        margin-top: -1px;
      }

      .ui-select-choices-row>a {
        display: block;
        padding: 3px 20px;
        clear: both;
        font-weight: 400;
        line-height: 1.42857143;
        color: #333;
        white-space: nowrap;
        //border-radius: 0 5px 5px 0;
      }

      .ui-select-choices-row>a:hover,
      .ui-select-choices-row>a:focus {
        text-decoration: none;
        color: #262626;
        background-color: #f5f5f5;
      }

      .ui-select-choices-row.active>a {
        color: #fff;
        text-decoration: none;
        outline: 0;
        background-color: #428bca;
      }

      .ui-select-choices-row.disabled>a,
      .ui-select-choices-row.active.disabled>a {
        color: #777;
        cursor: not-allowed;
        background-color: #fff;
      }

    }
  }
}

.ethdocs-page-content {
  position: absolute;
  left: 0;
  right: 0;
  top: $page-dropdown-height + $padding-large-vertical * 2;
  bottom: 0;

  & > .content-inner {
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    overflow-wrap: break-word;
    padding-right: $padding-large-horizontal;
    //padding-bottom: $padding-large-vertical * 4;

    h1 {
      margin: 0 0 $padding-large-vertical 0;
    }
    h2 {
      margin: $padding-large-vertical * 3 0 $padding-large-vertical 0;
    }
    h3 {
      margin: $padding-large-vertical * 3 0 $padding-large-vertical 0;
    }
    img {
      max-width: 100%;
    }
  }

  @media (max-width: $screen-xs-max) {
    top: $page-dropdown-height * 3 + $padding-large-vertical * 2;
  }
}
